package com.qut.qut_01.controller;

import com.qut.qut_01.mapper.IndexMapper;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/user")
public class indexController {


    @Resource
    private IndexMapper indexMapper;

    @RequestMapping("/index")

    public List<Map<String,Object>> indexSearch(){
        List<Map<String,Object>> list=null;
        list = indexMapper.indexSearch();
        return list;
    }
}
